package xiangmu;

public abstract class Car {
    private String chepai;
    private String pinpai;
    private double rizujin;
    private int chuzuzhuangtai = 1;

    public Car() {
    }

    public Car(String chepai, String pinpai, double rizujin) {
        this.chepai = chepai;
        this.pinpai = pinpai;
        this.rizujin = rizujin;
    }

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }

    public String getPinpai() {
        return pinpai;
    }

    public void setPinpai(String pinpai) {
        this.pinpai = pinpai;
    }

    public double getRizujin() {
        return rizujin;
    }

    public void setRizujin(double rizujin) {
        this.rizujin = rizujin;
    }


    public int getChuzuzhuangtai() {
        return chuzuzhuangtai;
    }

    public void setChuzuzhuangtai(int chuzuzhuangtai) {
        this.chuzuzhuangtai = chuzuzhuangtai;
    }

    public abstract double jisuan(int day);

    public abstract void show() ;

}
